package com.guanzhi.fusionMybatis.controller;

import com.guanzhi.fusionMybatis.po.User;
import com.guanzhi.fusionMybatis.service.UserService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Spring Boot
 * <p> Package: com.guanzhi.fusionMybatis.controller </p>
 * <p> File: UserController.java </p>
 * <p> Description:  (访问层)</p>
 * <p> Date: 2024/1/24 22:02</p>
 *
 * @author 观之
 * @version 1.0 （代码版本）
 * @email <a href="mailto:guanzhi55634@aliyun.com">观之</a>（邮箱）
 * @date 2024/1/24 21:54
 * @since jdk17（jdk版本）
 */
@RestController
@AllArgsConstructor
public class UserController {

    private final UserService userService;

    @RequestMapping("/user")
    public User findById(Long id) {
        return userService.findById(id);
    }
}
